package com.zk.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zk.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zk.mapper.OrdersMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ljw
 * @since 2020-11-29
 */
public interface IOrdersService extends IService<Orders> {
    //查看订单
    boolean addOrders(Orders order);
    //删除订单
    boolean delOrders(Long orderId);
    //更新订单
    boolean updateOrders(Orders orders);
    //查找所有订单
    IPage<Orders> queryAllOrders(Integer current,Integer size);
    //根据ID查找订单
    Orders queryOrdersById(Long orderId);
    //根据用户ID查找订单
    IPage<Orders> queryOrdersByUserName(Long userId,Integer current,Integer size);
}
